import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
// 异步组件
import { defineAsyncComponent } from 'vue'
const Home = () => import('../pages/Home/index.vue')
const Login = () => import('../pages/Login/index.vue')
const previewPdf = () => import('../pages/Preview/index.vue')
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component:  Home,
  },
  {
    path: "/login",
    name: "Login",
    component:  Login,
  },
  {
    path: "/previewPdf",
    name: "previewPdf",
    component:  previewPdf,
  },
 
]
export default createRouter({
  history: createWebHistory(),
  routes
})